If DEC would have expired we now restore DEC to 0 so it will fire.
The Domain loses info about how late DEC was from looking at DEC but I
don't think anyone tracks that.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
/* adjust the DEC value to account for cycles while not
* running this OS */
timebase_delta = mftb() - v->arch.timebase;
- v->arch.dec -= timebase_delta;
+ if (timebase_delta > v->arch.dec)
+ v->arch.dec = 0;
+ else
+ v->arch.dec -= timebase_delta;
}
/* XXX evaluate all isyncs in segment code */